<div class="grid_12">
    <div class="box round first fullpage">
        <h2>Cập nhật thông tin người hổ trợ</h2>
        <div class="block ">
            <?=$this->form?>
        </div>
    </div>
</div>

<script>
$(function(){
    $("#users_id").change(function(){
        var id = $(this).val();
        var link = "<?=$this->url(array("module"=>"admin","controller"=>"support","action"=>"add"))?>";
        if(id!=0){
            $.get(link,{"selectuser":id},function(rdata){
                $("#fullname").val(rdata.fullname);
                $("#phone").val(rdata.phone);
                $("#address").val(rdata.address);
                $("#yahoo").val(rdata.nickyahoo);
                $("#sky").val(rdata.nickskype);
            },"json");
        }else{
            form_support.reset();
        }
    })
})
</script>